'use strict';
const path = require('path');
// 配置 logger 文件的目录，logger 默认配置由框架提供
module.exports = appInfo => {
  return {
    logger: {
      dir: '/logs/prod',
    },
    logrotator: {
      filesRotateByHour: [
        path.join(appInfo.root, 'logs', appInfo.name, 'common-error.log'),
      ],
    },
  };
};